package com.hu.video.service;

import com.hu.video.entity.TUser;
import com.hu.video.entity.TVideo;

import java.util.List;

public interface IVideoService {
    String addViewSum(Long videoId);

    TVideo getVideoByVideoId(Long videoId, Long currentUserId);

    List<TVideo> getRecommendVideo(int pageNum, int pageSize, Long userId, Long currentUserId);

    String thumbsUp(TUser user, Long videoId);

    String addComment(int starNum, Long userId, Long videoId);

    int addVideo(TVideo video);

    int updateVideoPath(String path, Long videoId);

    int updateVideoImage(String s, Long videoId);

    Long getVideoLastId(String videoTitle);

    int adminUpdateVideoImage(String s, Long videoId);

    List<TVideo> queryByVideoTitle(String videoTitle, Long currentUserId);

    List<TVideo> getVideoListByUserId(Long userId, Long currentUserId);

    List<TVideo> getVideoByVideoTypeId(Long videoTypeId, Long currentUserId);

    List<TVideo> getIndexRecommendVideo(Long currentUserId);

    List<TVideo> getIndexLastVideo(Long currentUserId);

//    List<TVideo> getHotVideos(int limit);

    // 获取用户所有视频（不管状态）
    List<TVideo> getAllVideoListByUserId(Long userId);

    int updateVideo(TVideo video);

    int deleteVideo(Long videoId);

    List<TVideo> getHotVideos(int limit, Long currentUserId);
}
